package com.xuecheng.content.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 课程基本信息
 * @TableName course_base
 */
@TableName(value ="course_base")
public class CourseBase implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 机构ID
     */
    @TableField(value = "company_id")
    private Long company_id;

    /**
     * 机构名称
     */
    @TableField(value = "company_name")
    private String company_name;

    /**
     * 课程名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 适用人群
     */
    @TableField(value = "users")
    private String users;

    /**
     * 课程标签
     */
    @TableField(value = "tags")
    private String tags;

    /**
     * 大分类
     */
    @TableField(value = "mt")
    private String mt;

    /**
     * 课程大类名称
     */
    @TableField(value = "mt_name")
    private String mt_name;

    /**
     * 小分类
     */
    @TableField(value = "st")
    private String st;

    /**
     * 课程小类名称
     */
    @TableField(value = "st_name")
    private String st_name;

    /**
     * 课程等级
     */
    @TableField(value = "grade")
    private String grade;

    /**
     * 教育模式(common普通，record 录播，live直播等）
     */
    @TableField(value = "teachmode")
    private String teachmode;

    /**
     * 课程介绍
     */
    @TableField(value = "description")
    private String description;

    /**
     * 课程图片
     */
    @TableField(value = "pic")
    private String pic;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    private Date create_date;

    /**
     * 修改时间
     */
    @TableField(value = "change_date")
    private Date change_date;

    /**
     * 创建人
     */
    @TableField(value = "create_people")
    private String create_people;

    /**
     * 更新人
     */
    @TableField(value = "change_people")
    private String change_people;

    /**
     * 审核状态
     */
    @TableField(value = "audit_status")
    private String audit_status;

    /**
     * 审核意见
     */
    @TableField(value = "audit_mind")
    private String audit_mind;

    /**
     * 审核次数
     */
    @TableField(value = "audit_nums")
    private Integer audit_nums;

    /**
     * 审核时间
     */
    @TableField(value = "audit_date")
    private Date audit_date;

    /**
     * 审核人
     */
    @TableField(value = "audit_people")
    private String audit_people;

    /**
     * 是否删除：1为未删除，0为删除
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 课程发布标识
     */
    @TableField(value = "course_pub_id")
    private Long course_pub_id;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    public Long getId() {
        return id;
    }

    /**
     * 主键
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 机构ID
     */
    public Long getCompany_id() {
        return company_id;
    }

    /**
     * 机构ID
     */
    public void setCompany_id(Long company_id) {
        this.company_id = company_id;
    }

    /**
     * 机构名称
     */
    public String getCompany_name() {
        return company_name;
    }

    /**
     * 机构名称
     */
    public void setCompany_name(String company_name) {
        this.company_name = company_name;
    }

    /**
     * 课程名称
     */
    public String getName() {
        return name;
    }

    /**
     * 课程名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 适用人群
     */
    public String getUsers() {
        return users;
    }

    /**
     * 适用人群
     */
    public void setUsers(String users) {
        this.users = users;
    }

    /**
     * 课程标签
     */
    public String getTags() {
        return tags;
    }

    /**
     * 课程标签
     */
    public void setTags(String tags) {
        this.tags = tags;
    }

    /**
     * 大分类
     */
    public String getMt() {
        return mt;
    }

    /**
     * 大分类
     */
    public void setMt(String mt) {
        this.mt = mt;
    }

    /**
     * 课程大类名称
     */
    public String getMt_name() {
        return mt_name;
    }

    /**
     * 课程大类名称
     */
    public void setMt_name(String mt_name) {
        this.mt_name = mt_name;
    }

    /**
     * 小分类
     */
    public String getSt() {
        return st;
    }

    /**
     * 小分类
     */
    public void setSt(String st) {
        this.st = st;
    }

    /**
     * 课程小类名称
     */
    public String getSt_name() {
        return st_name;
    }

    /**
     * 课程小类名称
     */
    public void setSt_name(String st_name) {
        this.st_name = st_name;
    }

    /**
     * 课程等级
     */
    public String getGrade() {
        return grade;
    }

    /**
     * 课程等级
     */
    public void setGrade(String grade) {
        this.grade = grade;
    }

    /**
     * 教育模式(common普通，record 录播，live直播等）
     */
    public String getTeachmode() {
        return teachmode;
    }

    /**
     * 教育模式(common普通，record 录播，live直播等）
     */
    public void setTeachmode(String teachmode) {
        this.teachmode = teachmode;
    }

    /**
     * 课程介绍
     */
    public String getDescription() {
        return description;
    }

    /**
     * 课程介绍
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * 课程图片
     */
    public String getPic() {
        return pic;
    }

    /**
     * 课程图片
     */
    public void setPic(String pic) {
        this.pic = pic;
    }

    /**
     * 创建时间
     */
    public Date getCreate_date() {
        return create_date;
    }

    /**
     * 创建时间
     */
    public void setCreate_date(Date create_date) {
        this.create_date = create_date;
    }

    /**
     * 修改时间
     */
    public Date getChange_date() {
        return change_date;
    }

    /**
     * 修改时间
     */
    public void setChange_date(Date change_date) {
        this.change_date = change_date;
    }

    /**
     * 创建人
     */
    public String getCreate_people() {
        return create_people;
    }

    /**
     * 创建人
     */
    public void setCreate_people(String create_people) {
        this.create_people = create_people;
    }

    /**
     * 更新人
     */
    public String getChange_people() {
        return change_people;
    }

    /**
     * 更新人
     */
    public void setChange_people(String change_people) {
        this.change_people = change_people;
    }

    /**
     * 审核状态
     */
    public String getAudit_status() {
        return audit_status;
    }

    /**
     * 审核状态
     */
    public void setAudit_status(String audit_status) {
        this.audit_status = audit_status;
    }

    /**
     * 审核意见
     */
    public String getAudit_mind() {
        return audit_mind;
    }

    /**
     * 审核意见
     */
    public void setAudit_mind(String audit_mind) {
        this.audit_mind = audit_mind;
    }

    /**
     * 审核次数
     */
    public Integer getAudit_nums() {
        return audit_nums;
    }

    /**
     * 审核次数
     */
    public void setAudit_nums(Integer audit_nums) {
        this.audit_nums = audit_nums;
    }

    /**
     * 审核时间
     */
    public Date getAudit_date() {
        return audit_date;
    }

    /**
     * 审核时间
     */
    public void setAudit_date(Date audit_date) {
        this.audit_date = audit_date;
    }

    /**
     * 审核人
     */
    public String getAudit_people() {
        return audit_people;
    }

    /**
     * 审核人
     */
    public void setAudit_people(String audit_people) {
        this.audit_people = audit_people;
    }

    /**
     * 是否删除：1为未删除，0为删除
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 是否删除：1为未删除，0为删除
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 课程发布标识
     */
    public Long getCourse_pub_id() {
        return course_pub_id;
    }

    /**
     * 课程发布标识
     */
    public void setCourse_pub_id(Long course_pub_id) {
        this.course_pub_id = course_pub_id;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CourseBase other = (CourseBase) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCompany_id() == null ? other.getCompany_id() == null : this.getCompany_id().equals(other.getCompany_id()))
            && (this.getCompany_name() == null ? other.getCompany_name() == null : this.getCompany_name().equals(other.getCompany_name()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getUsers() == null ? other.getUsers() == null : this.getUsers().equals(other.getUsers()))
            && (this.getTags() == null ? other.getTags() == null : this.getTags().equals(other.getTags()))
            && (this.getMt() == null ? other.getMt() == null : this.getMt().equals(other.getMt()))
            && (this.getMt_name() == null ? other.getMt_name() == null : this.getMt_name().equals(other.getMt_name()))
            && (this.getSt() == null ? other.getSt() == null : this.getSt().equals(other.getSt()))
            && (this.getSt_name() == null ? other.getSt_name() == null : this.getSt_name().equals(other.getSt_name()))
            && (this.getGrade() == null ? other.getGrade() == null : this.getGrade().equals(other.getGrade()))
            && (this.getTeachmode() == null ? other.getTeachmode() == null : this.getTeachmode().equals(other.getTeachmode()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
            && (this.getPic() == null ? other.getPic() == null : this.getPic().equals(other.getPic()))
            && (this.getCreate_date() == null ? other.getCreate_date() == null : this.getCreate_date().equals(other.getCreate_date()))
            && (this.getChange_date() == null ? other.getChange_date() == null : this.getChange_date().equals(other.getChange_date()))
            && (this.getCreate_people() == null ? other.getCreate_people() == null : this.getCreate_people().equals(other.getCreate_people()))
            && (this.getChange_people() == null ? other.getChange_people() == null : this.getChange_people().equals(other.getChange_people()))
            && (this.getAudit_status() == null ? other.getAudit_status() == null : this.getAudit_status().equals(other.getAudit_status()))
            && (this.getAudit_mind() == null ? other.getAudit_mind() == null : this.getAudit_mind().equals(other.getAudit_mind()))
            && (this.getAudit_nums() == null ? other.getAudit_nums() == null : this.getAudit_nums().equals(other.getAudit_nums()))
            && (this.getAudit_date() == null ? other.getAudit_date() == null : this.getAudit_date().equals(other.getAudit_date()))
            && (this.getAudit_people() == null ? other.getAudit_people() == null : this.getAudit_people().equals(other.getAudit_people()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCourse_pub_id() == null ? other.getCourse_pub_id() == null : this.getCourse_pub_id().equals(other.getCourse_pub_id()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCompany_id() == null) ? 0 : getCompany_id().hashCode());
        result = prime * result + ((getCompany_name() == null) ? 0 : getCompany_name().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getUsers() == null) ? 0 : getUsers().hashCode());
        result = prime * result + ((getTags() == null) ? 0 : getTags().hashCode());
        result = prime * result + ((getMt() == null) ? 0 : getMt().hashCode());
        result = prime * result + ((getMt_name() == null) ? 0 : getMt_name().hashCode());
        result = prime * result + ((getSt() == null) ? 0 : getSt().hashCode());
        result = prime * result + ((getSt_name() == null) ? 0 : getSt_name().hashCode());
        result = prime * result + ((getGrade() == null) ? 0 : getGrade().hashCode());
        result = prime * result + ((getTeachmode() == null) ? 0 : getTeachmode().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getPic() == null) ? 0 : getPic().hashCode());
        result = prime * result + ((getCreate_date() == null) ? 0 : getCreate_date().hashCode());
        result = prime * result + ((getChange_date() == null) ? 0 : getChange_date().hashCode());
        result = prime * result + ((getCreate_people() == null) ? 0 : getCreate_people().hashCode());
        result = prime * result + ((getChange_people() == null) ? 0 : getChange_people().hashCode());
        result = prime * result + ((getAudit_status() == null) ? 0 : getAudit_status().hashCode());
        result = prime * result + ((getAudit_mind() == null) ? 0 : getAudit_mind().hashCode());
        result = prime * result + ((getAudit_nums() == null) ? 0 : getAudit_nums().hashCode());
        result = prime * result + ((getAudit_date() == null) ? 0 : getAudit_date().hashCode());
        result = prime * result + ((getAudit_people() == null) ? 0 : getAudit_people().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCourse_pub_id() == null) ? 0 : getCourse_pub_id().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", company_id=").append(company_id);
        sb.append(", company_name=").append(company_name);
        sb.append(", name=").append(name);
        sb.append(", users=").append(users);
        sb.append(", tags=").append(tags);
        sb.append(", mt=").append(mt);
        sb.append(", mt_name=").append(mt_name);
        sb.append(", st=").append(st);
        sb.append(", st_name=").append(st_name);
        sb.append(", grade=").append(grade);
        sb.append(", teachmode=").append(teachmode);
        sb.append(", description=").append(description);
        sb.append(", pic=").append(pic);
        sb.append(", create_date=").append(create_date);
        sb.append(", change_date=").append(change_date);
        sb.append(", create_people=").append(create_people);
        sb.append(", change_people=").append(change_people);
        sb.append(", audit_status=").append(audit_status);
        sb.append(", audit_mind=").append(audit_mind);
        sb.append(", audit_nums=").append(audit_nums);
        sb.append(", audit_date=").append(audit_date);
        sb.append(", audit_people=").append(audit_people);
        sb.append(", status=").append(status);
        sb.append(", course_pub_id=").append(course_pub_id);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }


}